﻿<%@ Page Title="预览申请单" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="PreviewApplicationForm.aspx.cs" Inherits="WXYW.PreviewApplicationForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    预览<asp:Label ID="applicationTypeLbl" runat="server"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div class="buttonHeader" style="text-align: right">
        <img src="image/operateicon/print.gif" alt="" />
        <a onclick="preview()">打印</a>
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:LinkButton ID="backLnk" runat="server" Text="返回" onclick="backLnk_Click"></asp:LinkButton>
    </div>
    <!--startprint-->
    <table width="100%">
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>用户信息</b>
            </td>
        </tr>
        <tr style="height: 25px; text-align: right;">
            <td colspan="5">
                <b>流水号：</b><asp:Label ID="runningNumberLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 10%">
                申请人：
            </td>
            <td style="width: 30%; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="contactLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td style="width: 5%">
            </td>
            <td style="width: 15%">
                公司名称：
            </td>
            <td style="width: 30%; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="companyLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td style="width: 10%">
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                电话：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="phoneNumberLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                手机号码：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="cellPhoneLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                传真：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="faxLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                通迅地址：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="addressLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                邮件：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="emailLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                代理商：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="agentLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                代申请人：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="agentpersonLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                电话：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="agentpersonPhoneLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 15px">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>产品信息</b>
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="color: Red;">
                提示：如果您在预览时发现填写错误，可以点击返回按钮进行修改。
            </td>
        </tr>
        <tr>
            <td colspan="6">
                <asp:GridView ID="productGridView" runat="server" AutoGenerateColumns="False" Width="100%"
                    CssClass="tableList" OnRowDataBound="productGridView_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="产品类型">
                            <ItemTemplate>
                                <%#Eval("ProductType.ProductTypeName")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="产品型号" DataField="ProductSerialNumber">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="版本号" DataField="ProductVersionNumber">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="数量" DataField="ProductCount">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="故障类型">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("ProblemType.Name") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="故障现象描述" DataField="ProductProblemDescription">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="外观及附件" DataField="ProductAppearance">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="购买时间">
                            <ItemTemplate>
                                <%#(Convert.ToDateTime(Eval("ProductPurchaseDateTime"))).ToString("yyyy-MM-dd")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="保修性质" DataField="ProductRepairType">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="6">
                <div align="center">
                    <asp:Button ID="Button1" runat="server" Text="确认并提交" OnClick="Button1_Click" />
                </div>
            </td>
        </tr>
    </table>
    <!--endprint-->
    <asp:HiddenField ID="hfApplicationType" runat="server" />
</asp:Content>
